package day11.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PaTest {
    public static void main(String[] args) {
        Printer p = new Printer();
        p.setPrice(1699);
        p.setBrand("惠普炫彩998");
        p.setInk(new ColorFulInk());
        p.setPaper(new A4());//!!!!!!!
        p.print("大家好才是真的好");
        System.out.println("换纸了。。。");
        p.setPaper(new B5());
        p.print("大家好才是真的好");
        System.out.println("又换了");
        p.setPaper(new A3());
        p.print("你好，我是渣渣灰");
    }
}
